package com.example.lg.aliplaydemo470.utils;

import com.example.lg.aliplaydemo470.GlobalConfig;
import com.example.lg.aliplaydemo470.R;
import com.example.lg.aliplaydemo470.bean.VideoBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: YuanPeikai
 * @CreateDate: 2020/8/22 15:05
 * @Description:
 */
public class DataUtil {


    public static List<VideoBean> getVideoInfo() {

        List<VideoBean> mList = new ArrayList<>();
        VideoBean videoBean1 = new VideoBean();
        videoBean1.setVideoUrl(GlobalConfig.PLAY_PARAM_URL1);
        videoBean1.setVideoCoverUrl(R.mipmap.v1);
        mList.add(videoBean1);

        VideoBean videoBean2 = new VideoBean();
        videoBean2.setVideoUrl(GlobalConfig.PLAY_PARAM_URL2);
        videoBean2.setVideoCoverUrl(R.mipmap.v2);
        mList.add(videoBean2);

        VideoBean videoBean3 = new VideoBean();
        videoBean3.setVideoUrl(GlobalConfig.PLAY_PARAM_URL3);
        videoBean3.setVideoCoverUrl(R.mipmap.v3);
        mList.add(videoBean3);

        VideoBean videoBean4 = new VideoBean();
        videoBean4.setVideoUrl(GlobalConfig.PLAY_PARAM_URL4);
        videoBean4.setVideoCoverUrl(R.mipmap.v4);
        mList.add(videoBean4);


        VideoBean videoBean5 = new VideoBean();
        videoBean5.setVideoUrl(GlobalConfig.PLAY_PARAM_URL5);
        videoBean5.setVideoCoverUrl(R.mipmap.v5);
        mList.add(videoBean5);


        VideoBean videoBean6 = new VideoBean();
        videoBean6.setVideoUrl(GlobalConfig.PLAY_PARAM_URL6);
        videoBean6.setVideoCoverUrl(R.mipmap.v6);
        mList.add(videoBean6);


        VideoBean videoBean7 = new VideoBean();
        videoBean7.setVideoUrl(GlobalConfig.PLAY_PARAM_URL7);
        videoBean7.setVideoCoverUrl(R.mipmap.v7);
        mList.add(videoBean7);


        VideoBean videoBean8 = new VideoBean();
        videoBean8.setVideoUrl(GlobalConfig.PLAY_PARAM_URL8);
        videoBean8.setVideoCoverUrl(R.mipmap.v8);
        mList.add(videoBean8);


        for (int i = 0; i < 30; i++) {
            VideoBean videoBean9 = new VideoBean();
            videoBean9.setVideoUrl(GlobalConfig.PLAY_PARAM_URL8);
            videoBean9.setVideoCoverUrl(R.mipmap.v8);
            mList.add(videoBean9);

        }


        return mList;


    }


}
